import screen as driver
from imgUtil import showImg
import wifimgr
import time
import gc

#初始化显示图片
def init():
    showImg("./img/start.png")

#检查网络
def checkWifi():
    showImg("./img/checkwifi.png")
    wlan = wifimgr.get_connection()
    if wlan is None:
        while True:
            pass  
    gc.collect()

if __name__=="__main__":
    init()
    time.sleep(2) 
    checkWifi()